<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="enquiry.aspx.cs" Inherits="school_enquiry" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="../include/js/form.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContentTop" runat="Server">
    <h1>
        Enquiry</h1>
    <h3>
        Enquiry for selected school?.</h3>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="bodyContent" runat="Server">
    <div class="elements_inner_wrapper">
        <div id="contentBody">
            <div class="section">
                <div class="seperator">
                </div>
                <fieldset class="formouter">
                    <table cellpadding="3" cellspacing="3" width="100%">
                        <tr>
                            <td colspan="2">
                                <div class="row_curved" id="divSchoolList" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlSchoolList.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="School Name" ID="Label2" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlSchoolList" OnSelectedIndexChanged="ddlSchoolList_SelectedIndexChanged"
                                                DataSourceID="odsSchoolProfileList" DataTextField="ListText" DataValueField="ListValue" />
                                            <asp:ObjectDataSource ID="odsSchoolProfileList" runat="server" DataObjectTypeName="SIS.ENT.Listing"
                                                DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList"
                                                TypeName="SIS.BLL.ListingManager" UpdateMethod="Save">
                                                <SelectParameters>
                                                    <asp:Parameter DefaultValue="1" Name="ListType" Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                            <asp:RequiredFieldValidator ID="rfvSchoolList" ValidationGroup="Enquiry" ControlToValidate="ddlSchoolList"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage="<br/>Please select a school name.<br/>"></asp:RequiredFieldValidator>
                                            &nbsp;&nbsp;
                                            <asp:Button Visible="false" runat="server" ID="btnShowLocation" Text="Show" OnClick="btnShowLocation_Click" />
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <div class="row_curved" id="divSchoolMajor" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlLocation.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Location" ID="lblLocation" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlLocation" OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged"
                                                DataSourceID="sqlDSLocation" DataTextField="LocationName" DataValueField="LocationKey" />
                                            <asp:SqlDataSource ID="sqlDSLocation" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="sprocLocationTableSelectList" SelectCommandType="StoredProcedure">
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                                        Type="Int32" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <asp:RequiredFieldValidator ID="rfvLocationList" ValidationGroup="Enquiry"
                                                ControlToValidate="ddlLocation" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="<br/>Please select a location name.<br/>"></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <h2>
                                    Equiry Listing</h2>
                                <p>
                                    &nbsp;</p>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="top">
                                <div>
                                    <asp:GridView ID="grvEnquiry" runat="server" AutoGenerateColumns="False" DataKeyNames="EnquiryKey, SchoolKey, LocationKey"
                                        CellPadding="4" Width="650px" DataSourceID="sqlDSEnquiry" ForeColor="#333333"
                                        GridLines="None" OnSelectedIndexChanged="grvEnquiry_SelectedIndexChanged">
                                        <RowStyle BackColor="#EFF3FB" />
                                        <Columns>
                                            <asp:BoundField DataField="EnquiryKey" HeaderText="EnquiryKey" ReadOnly="True" SortExpression="EnquiryKey"
                                                InsertVisible="False" />
                                            <asp:BoundField DataField="LocationKey" HeaderText="LocationKey" SortExpression="LocationKey" Visible="false" />
                                            <asp:BoundField DataField="SchoolKey" HeaderText="SchoolKey" SortExpression="SchoolKey" Visible="false"/>
                                            <asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
                                            <asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
                                            <asp:BoundField DataField="OtherName" HeaderText="OtherName" SortExpression="OtherName" />
                                            <asp:BoundField DataField="Gender" HeaderText="Gender" SortExpression="Gender" />
                                            <asp:BoundField DataField="EnquiryType" HeaderText="EnquiryType" SortExpression="EnquiryType"
                                                Visible="false" />
                                            <asp:BoundField DataField="EnquiryTypeDesc" HeaderText="Type" SortExpression="EnquiryTypeDesc" />
                                            <asp:BoundField DataField="EnquiryReasonType" HeaderText="EnquiryReasonType" SortExpression="EnquiryReasonType"
                                                Visible="false" />
                                            <asp:BoundField DataField="EnquiryReasonTypeDesc" HeaderText="Reason"
                                                SortExpression="EnquiryReasonTypeDesc" />
                                            <asp:BoundField DataField="ModifiedDateTime" HeaderText="Date/Time" SortExpression="ModifiedDateTime" />
                                            <asp:CommandField ShowSelectButton="True" />
                                        </Columns>
                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                        <EmptyDataTemplate>
                                            No enquiry found for selected school's location.
                                        </EmptyDataTemplate>
                                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <EditRowStyle BackColor="#2461BF" />
                                        <AlternatingRowStyle BackColor="White" />
                                    </asp:GridView>
                                    <asp:SqlDataSource ID="sqlDSEnquiry" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                        SelectCommand="sprocEnquiryTableSelectList" SelectCommandType="StoredProcedure">
                                        <SelectParameters>
                                            <asp:ControlParameter ControlID="ddlLocation" Name="LocationKey" PropertyName="SelectedValue"
                                                Type="Int32" />
                                            <asp:ControlParameter ControlID="ddlSchoolList" Name="SchoolKey" PropertyName="SelectedValue"
                                                Type="Int32" />
                                        </SelectParameters>
                                    </asp:SqlDataSource>
                                    <asp:ValidationSummary ID="vsLocation" runat="server" ValidationGroup="Enquiry" ShowSummary="True"
                                        HeaderText="Please complete all highlighted fields of the form. Thank you." CssClass="errorSummary" />
                                    <asp:Label Visible="false" runat="server" Text="-1" ID="lblSchoolKey" />
                                    <asp:Label Visible="false" runat="server" Text="-1" ID="lblLocationKey" />
                                    <asp:Label Visible="false" runat="server" Text="-1" ID="lblEnquiryKey" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <h2>
                                    Enquiry Details</h2>
                                <div class="row_curved" id="divFirstName" runat="server" title="Example:Aung Aung, Mg Mg, Aye Aye">
                                    <label for="<%=txtFirstName.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="First Name" ID="lblFirstName" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox Width="220px" ID="txtFirstName" MaxLength="120" runat="server" />
                                            <asp:RequiredFieldValidator ID="rfvFirstName" ValidationGroup="Enquiry" ControlToValidate="txtFirstName"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divLastName" runat="server" title="Example:Thant, Zaw, Moe">
                                    <label for="<%=txtLastName.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Last Name" ID="lblLastName" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox Width="220px" ID="txtLastName" MaxLength="50" runat="server" />
                                            <asp:RequiredFieldValidator ID="rfvLastName" ValidationGroup="Enquiry" ControlToValidate="txtLastName"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divOtherName" runat="server" title="Example:Thar Aye, Ma Hla, Phoe Thar">
                                    <label for="<%=txtOtherName.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Other Name" ID="lblOtherName" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox Width="220px" ID="txtOtherName" MaxLength="50" runat="server" />
                                            <asp:RequiredFieldValidator ID="rfvOtherName" ValidationGroup="Enquiry" ControlToValidate="txtOtherName"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divGender" runat="server" title="Example: Male, Female">
                                    <label for="<%=ddlGender.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Gender" ID="lblGender" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlGender" runat="server">
                                                <asp:ListItem Text="Select" Value="-1" />
                                                <asp:ListItem Text="Male" Value="M" />
                                                <asp:ListItem Text="Female" Value="F" />
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="rfvGender" InitialValue="-1" ValidationGroup="Enquiry"
                                                ControlToValidate="ddlGender" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divEnquiryType" runat="server" title="Example: Walk In, Phone, Online, Mail">
                                    <label for="<%=ddlEnquiryType.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Type" ID="lblEnquiryType" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlEnquiryType" runat="server" DataSourceID="sqlDSEnquiryType"
                                                DataTextField="Description" DataValueField="EnquiryType">
                                                <asp:ListItem Text="Select" Value="-1" />
                                                <asp:ListItem Text="Walk in" Value="1" />
                                                <asp:ListItem Text="Phone" Value="2" />
                                                <asp:ListItem Text="Online" Value="3" />
                                                <asp:ListItem Text="Mail" Value="4" />
                                            </asp:DropDownList>
                                            <asp:SqlDataSource ID="sqlDSEnquiryType" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="sprocEnquiryTypeTableSelectList" SelectCommandType="StoredProcedure">
                                            </asp:SqlDataSource>
                                            <asp:RequiredFieldValidator ID="rfvEnquiryType" InitialValue="-1" ValidationGroup="Enquiry"
                                                ControlToValidate="ddlEnquiryType" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divEnquiryReasonType" runat="server" title="Example: Student, Teacher, School Calender">
                                    <label for="<%=ddlEnquiryReasonType.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Reason" ID="lblEnquiryReasonType" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlEnquiryReasonType" runat="server" DataSourceID="sqlDSEnquiryReasonType"
                                                DataTextField="Description" DataValueField="EnquiryReasonType">
                                                <asp:ListItem Text="Select" Value="-1" />
                                                <asp:ListItem Text="General" Value="1" />
                                                <asp:ListItem Text="School Calender" Value="2" />
                                                <asp:ListItem Text="Student" Value="3" />
                                                <asp:ListItem Text="Teacher" Value="4" />
                                            </asp:DropDownList>
                                            <asp:SqlDataSource ID="sqlDSEnquiryReasonType" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="sprocEnquiryReasonTypeTableSelectList" SelectCommandType="StoredProcedure">
                                            </asp:SqlDataSource>
                                            <asp:RequiredFieldValidator ID="rfvEnquiryReasonType" InitialValue="-1" ValidationGroup="Enquiry"
                                                ControlToValidate="ddlEnquiryReasonType" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divRelationShipType" runat="server" title="Example: Father, Mother, Brother, Sister">
                                    <label for="<%=divEnquiryReasonType.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Relation to Student" ID="Label4" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlRelationShipType" runat="server" DataSourceID="sqlDSRelation"
                                                DataTextField="Description" DataValueField="RelationshipTypeCode">
                                                <asp:ListItem Text="Select" Value="-1" />
                                                <asp:ListItem Text="Self" Value="0" />
                                                <asp:ListItem Text="Father" Value="1" />
                                                <asp:ListItem Text="Mother" Value="2" />
                                                <asp:ListItem Text="Brother" Value="3" />
                                                <asp:ListItem Text="Sister" Value="4" />
                                            </asp:DropDownList>
                                            <asp:SqlDataSource ID="sqlDSRelation" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="sprocRelationshipTypeCodeTableSelectList" SelectCommandType="StoredProcedure">
                                            </asp:SqlDataSource>
                                            <asp:RequiredFieldValidator ID="rfvRelationShipType" InitialValue="-1" ValidationGroup="Enquiry"
                                                ControlToValidate="ddlRelationShipType" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divMessage" runat="server" title="Example:Please reply 10th standard school calender for this year.">
                                    <label for="<%=txtMessage.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Message" ID="lblMessage" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox ID="txtMessage" TextMode="MultiLine" Rows="10" Columns="35" runat="server" />
                                            <asp:RequiredFieldValidator ID="rfvMessage" ValidationGroup="Enquiry" ControlToValidate="txtMessage"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divContactPhoneNo" runat="server" title="Example:09-12345678, 01-3434343">
                                    <label for="<%=txtContactPhoneNo.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Contact Phone No." ID="lblContactPhoneNo" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox ID="txtContactPhoneNo" MaxLength="50" runat="server" />
                                            <asp:RequiredFieldValidator ID="rfvContactPhoneNo" ValidationGroup="Enquiry" ControlToValidate="txtContactPhoneNo"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divContactEmail" runat="server" title="Example:yourname@domain.com, mgmgkyaw@gmail.com">
                                    <label for="<%=txtContactEmail.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Contact Email" ID="Label3" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox ID="txtContactEmail" MaxLength="240" Width="300px" runat="server" />
                                            <asp:RequiredFieldValidator ID="rfvContactEmail" ValidationGroup="Enquiry" ControlToValidate="txtContactEmail"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revContactEmail" ValidationGroup="Enquiry" ControlToValidate="txtContactEmail"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""
                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <h2>
                                    Contact Address</h2>
                                <div class="row_curved" id="divUnitNo" runat="server">
                                    <label for="<%=txtUnitNo.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="UnitNo" ID="lblUnitNo" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox ID="txtUnitNo" Width="120px" MaxLength="20" runat="server" />
                                            <asp:RequiredFieldValidator ID="rfvUnitNo" ValidationGroup="Enquiry" ControlToValidate="txtUnitNo"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divStreetName" runat="server">
                                    <label for="<%=txtStreetName.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Street Name" ID="lblStreetName" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox ID="txtStreetName" Width="270px" MaxLength="255" runat="server" />
                                            <asp:RequiredFieldValidator ID="rfvStreetName" ValidationGroup="Enquiry" ControlToValidate="txtStreetName"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divCountry" runat="server">
                                    <label for="<%=ddlCountry.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Country" ID="lblCountry" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList Width="100px" runat="server" ID="ddlCountry">
                                                <asp:ListItem Text="Select" Value="-1"></asp:ListItem>
                                                <asp:ListItem Value="95" Text="Myanmar" Selected="True"></asp:ListItem>
                                                <asp:ListItem Value="65" Text="Singapore"></asp:ListItem>
                                                <asp:ListItem Value="66" Text="Thailand"></asp:ListItem>
                                                <asp:ListItem Value="60" Text="Malaysia"></asp:ListItem>
                                                <asp:ListItem Value="86" Text="China"></asp:ListItem>
                                                <asp:ListItem Value="91" Text="India"></asp:ListItem>
                                                <asp:ListItem Value="62" Text="Indonesia"></asp:ListItem>
                                                <asp:ListItem Value="63" Text="Philippines"></asp:ListItem>
                                                <asp:ListItem Value="81" Text="Japan"></asp:ListItem>
                                                <asp:ListItem Value="82" Text="South Korea"></asp:ListItem>
                                                <asp:ListItem Value="84" Text="Vietnam"></asp:ListItem>
                                                <asp:ListItem Value="61" Text="Australia"></asp:ListItem>
                                                <asp:ListItem Value="850" Text="North Korea"></asp:ListItem>
                                                <asp:ListItem Value="855" Text="Cambodia"></asp:ListItem>
                                                <asp:ListItem Value="856" Text="Laos"></asp:ListItem>
                                                <asp:ListItem Value="971" Text="Dubai"></asp:ListItem>
                                                <asp:ListItem Value="1" Text="United States"></asp:ListItem>
                                                <asp:ListItem Value="7" Text="Russia"></asp:ListItem>
                                                <asp:ListItem Value="44" Text="United Kingdom"></asp:ListItem>
                                                <asp:ListItem Value="999" Text="Others"></asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="rfvCountry" ValidationGroup="Enquiry" ControlToValidate="ddlCountry"
                                                InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                        <label for="<%=ddlDistrict.ClientID%>" style="width: 40px" class="mand_red">
                                            <asp:Label runat="server" Text="State/Div" ID="lblDistrict" /></label>
                                        <span class="indicator">
                                            <asp:DropDownList Width="100px" runat="server" ID="ddlDistrict">
                                                <asp:ListItem Text="Select" Value="-1"></asp:ListItem>
                                                <asp:ListItem Text="Kachin" Value="11"></asp:ListItem>
                                                <asp:ListItem Text="Kayar" Value="12"></asp:ListItem>
                                                <asp:ListItem Text="Kayin" Value="13"></asp:ListItem>
                                                <asp:ListItem Text="Chin" Value="14"></asp:ListItem>
                                                <asp:ListItem Text="Mon" Value="15"></asp:ListItem>
                                                <asp:ListItem Text="Rakhine" Value="17"></asp:ListItem>
                                                <asp:ListItem Text="Shan" Value="18"></asp:ListItem>
                                                <asp:ListItem Text="Mandalay" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="Yangon" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="Naypyitaw" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="Others" Value="99"></asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="rfvDistrict" ValidationGroup="Enquiry" ControlToValidate="ddlDistrict"
                                                InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divCity" runat="server">
                                    <label for="<%=ddlCity.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="City Name" ID="lblCity" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList Width="100px" runat="server" ID="ddlCity">
                                                <asp:ListItem Text="Select" Value="-1"></asp:ListItem>
                                                <asp:ListItem Text="MyitKyiNar" Value="11"></asp:ListItem>
                                                <asp:ListItem Text="Taungyi" Value="12"></asp:ListItem>
                                                <asp:ListItem Text="Sittwe" Value="13"></asp:ListItem>
                                                <asp:ListItem Text="Mutone" Value="14"></asp:ListItem>
                                                <asp:ListItem Text="Mandalay" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="Yangon" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="Naypyitaw" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="Others" Value="9999"></asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="rfvCity" ValidationGroup="Enquiry" ControlToValidate="ddlCity"
                                                InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                        <label for="<%=txtPostCode.ClientID%>" style="width: 40px" class="mand_red">
                                            <asp:Label runat="server" Text="Postal" ID="lblPostCode" /></label>
                                        <span class="indicator">
                                            <asp:TextBox Width="100px" ID="txtPostCode" MaxLength="50" runat="server" />
                                            <asp:RequiredFieldValidator ID="rfvPostCode" ValidationGroup="Enquiry" ControlToValidate="txtPostCode"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divPreferContactType" runat="server" title="Example: Phone Call, Email, Letter Mail">
                                    <label for="<%=ddlPreferContactType.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Prefer Contact" ID="lblPreferContactType" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlPreferContactType" runat="server" DataSourceID="sqlDSPreferContactType"
                                                DataTextField="Description" DataValueField="PreferContactTypeCode">
                                                <asp:ListItem Text="Select" Value="-1" />
                                                <asp:ListItem Text="Phone Call" Value="1" />
                                                <asp:ListItem Text="Mail" Value="2" />
                                                <asp:ListItem Text="e-Mail" Value="3" />
                                            </asp:DropDownList>
                                            <asp:SqlDataSource ID="sqlDSPreferContactType" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="Select * from PreferContactTypeCodeTable Where Status = 1"></asp:SqlDataSource>
                                            <asp:RequiredFieldValidator ID="rfvPreferContactType" InitialValue="-1" ValidationGroup="Enquiry"
                                                ControlToValidate="ddlPreferContactType" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divRemark" runat="server" title="Example:He just want to know about school calender. But, not reply anything yet.">
                                    <label for="<%=txtRemark.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Remark" ID="lblRemark" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox ID="txtRemark" TextMode="MultiLine" Rows="3" Columns="35" runat="server" />
                                            <asp:RequiredFieldValidator ID="rfvRemark" ValidationGroup="Enquiry" ControlToValidate="txtRemark"
                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <div class="row_curved" style="background-color: #efefef;" id="divButton" runat="server">
                                    <label>
                                        &nbsp;</label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:Button ID="btnSubmit" CssClass="button_normal_submit" Text="Save" ValidationGroup="Enquiry"
                                                OnClientClick="SubmitOnClientClick(this, 'Enquiry');" runat="server" OnClick="btnSubmit_Click" /></span>
                                        &nbsp;&nbsp;<asp:Button runat="server" ID="btnAddNewEnquiry" Text="New" OnClick="btnAddNew_Click"
                                            Style="height: 26px" />
                                        &nbsp;&nbsp;<asp:Button runat="server" ID="btnDelete" OnClientClick="return confirm('Are you sure to delete?');"
                                            Text="Delete" OnClick="btnDelete_Click" />
                                        &nbsp;&nbsp;<asp:Button runat="server" ID="btnCreateStudentProfile" OnClientClick="return confirm('Are you sure to create student profile?');"
                                            Text="Create Student Profile" Visible="false" OnClick="btnCreateStudentProfile_Click" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="divPageMessage" runat="server">
                                    <label>
                                        &nbsp;</label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:Label ID="lblPageMessage" Font-Bold="true" runat="server"></asp:Label>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        //<![CDATA[
        SetSumitNormalButtonAttribute(document.getElementById('<%=btnSubmit.ClientID%>'));
        //]]>
    </script>

</asp:Content>
